#include <stdio.h>
#include <stdlib.h>

int main(){
    enum color{red=1,green,blue};
    enum color favorite;

    printf("Enter your favourite color: (1.red, 2.green, 3.blue): ");
    scanf("%u",&favorite);

    switch(favorite){
        case red:
            printf("Red!");
            break;
        case green:
            printf("Green!");
            break;
        case blue:
            printf("Blue!");
            break;
        default:
            printf("None!");
    }
    return 0;
}
